import { BaseService, Service } from "/@/cool";

@Service("api")
export default class Api extends BaseService {
    sendSms(params: any): Promise<any> {
        return this.request({
            url: "/driver-wallet/api/user/getVerifyCode",
            method: "GET",
            params,
        });
    }

    register(data: any): Promise<any> {
        return this.request({
            url: "/driver-wallet/api/user/register",
            method: "POST",
            data,
        });
    }

    login(data: any): Promise<any> {
        return this.request({
            url: "/driver-wallet/api/user/login",
            method: "POST",
            data,
        });
    }

    getAdv(params: any): Promise<any> {
        return this.request({
            url: "/driver-wallet/ad/list",
            method: "GET",
            params,
        });
    }

}